#ifndef ARCWIDGET_H
#define ARCWIDGET_H

#include <QWidget>

namespace Ui {
class ArcWidget;
}

class ArcWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ArcWidget(QWidget *parent = nullptr);
    ~ArcWidget();

protected:
    void paintEvent(QPaintEvent *e)override;

private:
    Ui::ArcWidget *ui;
    QMap<int,QString> type_name_Map;
    QMap<int,int> duration_Map;
    QList<int> duration_List;
    QList<QString> type_name_StrList;
    int m_nPeopleCount;
    int m_nCount;
    qreal m_pi = 3.1415;

    QString getPercentInt(const QString &percentStr);

    friend class MainWindow;
    friend class Statistics;
};

#endif // ARCWIDGET_H
